package com.meida.paotui.bus.provider.service;

import com.meida.common.mybatis.base.service.IBaseService;
import com.meida.common.mybatis.entity.EntityMap;
import com.meida.common.mybatis.model.PageModel;
import com.meida.common.mybatis.model.ResultBody;
import com.meida.paotui.bus.client.entity.BusGoodsorder;

import java.util.List;

/**
 * 订单表 接口
 *
 * @author flyme
 * @date 2019-11-12
 */
public interface BusGoodsorderService extends IBaseService<BusGoodsorder> {

    Double getCommission(Double distance,Double weight,Long couponId,Double tip);

    ResultBody sendUserList(PageModel model);


    ResultBody getOrderList(PageModel model,String status, String isInvoice);


     EntityMap findGoodsOrderCount(Long sendUserInfoId,String  startDate,String  endDate);

     EntityMap findCancelOrderCount(Long sendUserInfoId,String  startDate,String  endDate);

     List<EntityMap> findmothbils(Long sendUserInfoId);


     List<EntityMap> findListDataByDistance(Double lng, Double lat, Double distance,String deliveryTime ,String commission,PageModel pageModel);

      public Boolean updateInvoiceId(Long GoodsOrderId, Long invoiceId);

     int findCtnDataByDistance(Double lng, Double lat, String distance,String deliveryTime,String commission);



}
